﻿#include <stdio.h>

int average(int x, int y)
{
	return (x + y) / 2;
}
//⽅法2


int average(int x, int y)
{
	return x + (y - x) / 2;
}
int main()
{
	int m = 0;
	int n = 0;
	scanf("%d %d", &m, &n);
	int avg = average(m, n);
	printf("%d\n", avg);
	return 0;
}